# at first type on ur terminal that $(uname -r) then u will get the version..
# that is using on ur system
# misc 方式
 
obj-m += MemDev.o
 
KDIR =/usr/src/linux-headers-$(shell uname -r)

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules
	
clean:
	rm -rf *.o *.mod.* *.mod *.symvers *.order .*.cmd

clean-all: clean
	rm *.ko

